/*
 * ModalAdapter.java
 *
 * Created on 23 de mayo de 2007, 09:07 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Util;

/**
 *
 * @author Administrador
 */
public class ModalAdapter extends javax.swing.event.InternalFrameAdapter {
	
	public ModalAdapter(java.awt.Component glass) {
	    this.glass = glass;
            // Associate dummy mouse listeners
            // Otherwise mouse events pass through
            javax.swing.event.MouseInputAdapter adapter = new javax.swing.event.MouseInputAdapter(){};
            glass.addMouseListener(adapter);
            glass.addMouseMotionListener(adapter);
	}
	
 public void internalFrameClosed( javax.swing.event.InternalFrameEvent e ) {
            glass.setVisible(false);    
            //legajopersonal.JFrmLegajo.HabilitarMenuBar();
        }       
	java.awt.Component glass;       
}